package com.ict.web.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

/**
 * 绩效Service业务层处理
 *
 * @author ruoyi
 * @date 2022-02-15
 */
@Data
public class InsertPerformanceRuleDto {

    @ApiModelProperty(value = "规则条件(0:>，1:≥，2:=，3:≤，4:＜)")
    private String regulation;

    @ApiModelProperty(value = "目标值")

    @Pattern(regexp = "^[0-9]+\\.{0,1}[0-9]{0,2}$",message = "目标值必须为整数，整数位上限为2位，不能有小数")
    @Digits(integer=2,fraction = 0,message = "目标值必须为整数，整数位上限为2位，不能有小数")
    @NotNull(message = "目标值不能为空")
    private String value;

    @ApiModelProperty(value = "得分")
    private Double score;
}
